import java.io.*;
import java.util.Scanner;

public class text {
    public static void main(String[] args) {
        try(OutputStream outputStream=new FileOutputStream("c:/Intel/text2.txt"))
        {
            //byte[]arr={'l','o','v','e','w'};
            String s="nothing";
            byte[]arr=s.getBytes();
            outputStream.write(arr);

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
    public static void main1(String[] args) {
        try(InputStream inputStream=new FileInputStream("c:/Intel/text2.txt"))
        {
            Scanner scanner=new Scanner(inputStream);
            while(scanner.hasNext())
            {
                String s=scanner.next();
                System.out.println(s);
            }

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }


}
